import axios from "../../utils/axios";

// 区域列表
export function getAreaList(query) {
    return axios({
        url: "/admin/system/region/index",
        method: "get",
        params: query
    });
}

// 区域树
export function getTree(query) {
    return axios({
        url: "/admin/system/region/tree",
        method: "get",
        params: query
    });
}

// 添加
export function addArea(query) {
    return axios({
        url: "/admin/system/region/save",
        method: "post",
        data: query
    });
}

// 删除
export function deleteArea(query) {
    return axios({
        url: "/admin/system/region/delete",
        method: "post",
        data: query
    });
}

// 修改
export function editArea(query) {
    return axios({
        url: "/admin/system/region/edit",
        method: "post",
        data: query
    });
}

// 区域类型(级别)
export function getType(query) {
    return axios({
        url: "/admin/system/region/getRegionType",
        method: "get",
        params: query
    });
}




